package com.cloud.pole.shop.model.entity.shops;


import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;
import lombok.Data;

/**
 * @author 
 */
@Data
@Table(name="shop_shops_fans")
public class ShopShopsFans implements Serializable {
	/**
	 * 状态（0：无效 1：有效）
	 */
	public static final int FANS_STATUS_YES = 1;
	public static final int FANS_STATUS_NO  = 0;
	
	
	 /**
     * id
     */
    @Id
    @Column(name="fans_id")
    private Long fansId;

    /**
     * 商家Id
     */
    @NotEmpty
    @Column(name="merchant_id")
    private Integer merchantId;

    /**
     * 店铺id
     */
    @NotEmpty
    @Column(name="shop_id")
    private Integer shopId;

    /**
     * 用户id
     */
    @Column(name="user_id")
    private Long userId;

    /**
     * 喜欢时间
     */
    @Column(name="fans_time")
    private Date fansTime;

    /**
     * 状态（0：无效 1：有效）
     */
    @Column(name="fans_status")
    private Integer fansStatus;

    /**
     * open_id
     */
    @Column(name="open_id")
    private String openId;
    
    /**
     * 用户头像
     */
    @Column(name="avatar_url")
    private String avatarUrl;
    
    /**
       * 用户昵称
     */
    @Column(name="nick_name")
    private String nickName;

    private static final long serialVersionUID = 1L;
}